FROM openjdk:8-jre

ENV TZ=Asia/Shanghai    \
    APP_NAME=onemap-model \
    JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

RUN mkdir -p /onemap/model

WORKDIR /onemap/model

EXPOSE 9002

ADD ./target/onemap-model ./onemap-model.jar

ENTRYPOINT ["java", "-jar", "onemap-model.jar"]

CMD ["--spring.profiles.active=dev"]